﻿using System;

namespace TempEmployees.BLL.UserAccess
{
    public static class UserDetailsGenerator
    {
        public static IUserDetails GenerateUserDetails(string id)
        {
            UserDetails details = new UserDetails();
            details.ID = id;
            return details;
        }

        public static void SetFirstName(this IUserDetails details, string firstName) { (details as UserDetails).FirstName = firstName; }

        public static void SetLastName(this IUserDetails details, string lastName) { (details as UserDetails).LastName = lastName; }

        public static void SetDepartmentID(this IUserDetails details, int departmentId) { (details as UserDetails).DepartmentID = departmentId; }

        public static void SetRoles(this IUserDetails details, int roles) { (details as UserDetails).Roles = roles; }

        public static void SetPhoneNumber(this IUserDetails details, string phoneNumber) { (details as UserDetails).PhoneNumber = phoneNumber; }

        public static void SetEmail(this IUserDetails details, string email) { (details as UserDetails).Email = email; }
    }
}
